package priv.hh.entity;

import javafx.beans.property.SimpleStringProperty;
import javafx.beans.property.StringProperty;

public class Post {

    private StringProperty method;
    private StringProperty url;
    private StringProperty status;
    private String responseTime;
    private String bodySize;
    private String body;

    public Post() {
    }

    public Post(String method, String url, String status, String responseTime, String bodySize, String body) {
        this.method = new SimpleStringProperty(method);
        this.url = new SimpleStringProperty(url);
        this.status = new SimpleStringProperty(status);
        this.responseTime = responseTime;
        this.bodySize = bodySize;
        this.body = body;
    }

    public String getMethod() {
        return method.get();
    }

    public StringProperty methodProperty() {
        return method;
    }

    public void setMethod(String method) {
        this.method.set(method);
    }

    public String getUrl() {
        return url.get();
    }

    public StringProperty urlProperty() {
        return url;
    }

    public void setUrl(String url) {
        this.url.set(url);
    }

    public String getStatus() {
        return status.get();
    }

    public StringProperty statusProperty() {
        return status;
    }

    public void setStatus(String status) {
        this.status.set(status);
    }

    public String getResponseTime() {
        return responseTime;
    }

    public void setResponseTime(String responseTime) {
        this.responseTime = responseTime;
    }

    public String getBodySize() {
        return bodySize;
    }

    public void setBodySize(String bodySize) {
        this.bodySize = bodySize;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }
}
